PROG=	hidump
NO_MAN=
SRCS=	hidump.c usage_page.c usage_in_page.c

GENSRCS=	usage_in_page.c usage_page.c
CLEANFILES=	${GENSRCS}

WARNS?=	6

DPADD=	${LIBUSB}
LDADD+= -lusb

.SUFFIXES:	.awk .c
.awk.c:
	awk -f ${.IMPSRC} usb_hid_usages > ${.TARGET}

usage_in_page.c:	usb_hid_usages usage_in_page.awk
usage_page.c:		usb_hid_usages usage_page.awk

.include <bsd.prog.mk>
